package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther:
 * @Date: 2024/9/11 19:41
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SendSmsCodeRequest对象", description = "发送短信验证码请求对象")
public class SendSmsCodeRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty("短信类型 1注册验证码 2忘记密码验证码, 3短信验证码登录 4实名认证")
    @NotNull(message = "验证码短信类型参数不能为空")
    private Integer smsType;
}
